public class Dmoe5 {
	public static void main(String[] args) {
		double deposit = 10000;
		double hq = 0.0035;
		double dq1 = 0.015;
		double dq2 = 0.021;
		double hqbx1 = Math.round(deposit * (1 + 0.0035));
		double hqbx2 = Math.round(deposit * 0.0035 * 2 + deposit);
		double dqbx1 = Math.round(deposit * (1 + 0.015));
		double dqbx2 = Math.round(deposit * 0.021 * 2 + deposit);
		System.out.println("活期1年的本息总计：" + hqbx1);
		System.out.println("活期2年的本息总计：" + hqbx2);
		System.out.println("定期1年的本息总计：" + dqbx1);
		System.out.println("定期2年的本息总计：" + dqbx2);
	}
}
